/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.mes.purchase.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;

import java.math.BigDecimal;

/**
 * 项目信息实体类
 *
 * @author BladeX
 * @since 2020-09-04
 */
@Data
@TableName("pur_project_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ProjectInfo对象", description = "项目信息")
public class Project extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 项目编号
	*/
		@ApiModelProperty(value = "项目编号")
		private String projectNo;
	/**
	* 项目名称
	*/
		@ApiModelProperty(value = "项目名称")
		private String projectName;
	/**
	* 项目类型
	*/
		@ApiModelProperty(value = "项目类型")
		private String projectType;
	/**
	 * 预算金额
	 */
	@ApiModelProperty(value = "预算金额")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private BigDecimal budgetAmount;
	/**
	 * 年度
	 */
	@ApiModelProperty(value = "年度")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private Integer year;
	/**
	 * 是否被使用
	 */
	@ApiModelProperty(value = "是否被使用")
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private Integer isUsed;
}
